package com.newretail.springboot.service.impl;

import com.newretail.springboot.dao.ICityDao;
import com.newretail.springboot.entity.City;
import com.newretail.springboot.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:gaoxu;
 * @Email:gaoxu@benlai.com
 * @DATE:2017-12-28
 * @version:ver1.0.0
 * @Description: Created by gaoxu on 2017-12-28.
 */

@Service
public class CityServiceImpl implements ICityService {

    @Autowired
    private ICityDao cityDao;

    /**
     * 根据主键获取城市对象
     *
     * @param id
     * @return
     */
    @Override
    public City getCityById(Long id) {
        return cityDao.getCityById(id);
    }
}
